package com.jd.ty.pojo;

import java.util.Date;

import com.jd.ty.util.DES;

public class User implements java.io.Serializable {

	private static final long serialVersionUID = -8353116080579228324L;

	private Long userId;
	private Role role;
	private String loginId;
	private String loginPwd;
	private Date createdDate;
	private Date lastModified;

	public User() {
		
	}
	
	public String getLoginId() {
		return this.loginId;
	}

	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}

	public String getLoginPwd() {
		return this.loginPwd;
	}

	public void setLoginPwd(String password) {
		this.loginPwd = password;
	}

	public Date getCreatedDate() {
		return this.createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public Date getLastModified() {
		return this.lastModified;
	}

	public void setLastModified(Date lastModified) {
		this.lastModified = lastModified;
	}

	public String getPwd() {
		return DES.decrypt(this.loginPwd);
	}

	public void setPwd(String password) {
		this.loginPwd = DES.encrypt(password);
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

}